/*
 * @Author: deliteam 462085920@qq.com
 * @Date: 2023-11-09 09:27:03
 * @Description:
 */
// 参考文章：https://juejin.cn/post/7234365864840871993?searchId=20231109090800ABD33D45269F0B38871E
import { Controller, Get, UseGuards } from '@nestjs/common';
import { OssService } from './oss.service';
import { ApiTags, ApiOperation } from '@nestjs/swagger';
import { JwtAuthGuardUser } from 'src/auth/guards/jwt-auth.guard';
@ApiTags('Oss')
@Controller('api/oss')
@UseGuards(JwtAuthGuardUser)
export class OssController {
  constructor(private oss: OssService) {}
  @Get('signature')
  @ApiOperation({ summary: '获取oss签名' })
  getOssSignature() {
    return this.oss.getSignature();
  }
}
